package org.gpf.simpleFactory.markDiscount;
/**
 * 现金收费工厂类
 * @author gaopengfei
 * @date 2015-4-26 下午11:31:00
 */
public class CashFactory {

	public static CashSuper getCashAccept(String type){
		
		CashSuper cs = null;
		switch (type) {
		case "正常收费":
			cs = new CashNormal();
			break;
		case "满300返100":
			cs = new CashReturn(300, 100);
			break;
		case "打八折":
			cs = new CashRebate(0.8);
			break;
		default:
			break;
		}
		return cs;
	}
	
}
